//
//  QRCode.ScanViewModel.swift
//  SwiftCode
//
//  Created by yuhus on 2024/1/24.
//

import Foundation
import RxSwift

extension QRCode {
  final class ScanViewModel: ViewModelType {
    private let bag = DisposeBag()
    
    struct Input {
      let viewDidLoad: Observable<Void>
      let backButtonTapped: Observable<Void>
    }
    
    struct Output {
      
    }
    
    func adapt(input: Input) -> Output {
      input.viewDidLoad
        .subscribe()
        .disposed(by: bag)
      
      input.backButtonTapped
        .dismiss(animated: true)
        .subscribe()
        .disposed(by: bag)
      
      return .init()
    }
  }
}
